﻿using Tetris.Game.ControlsBase.Common;

namespace Tetris.Game.Common.TetrisCenter.TetrisBase
{
    [Shape(true, ShapeType.T)]
    public class TBlockShape : BlockShapeBase
    {
        public TBlockShape()
        {
            TetrisShapeType = ShapeType.T;
        }
        public override void CreationBlock()
        {
            base.CreationBlock();
            int x = (Column - 2) >> 1;
            base.CreationBlock(t =>
            {
                t.PositionX = x;
                t.PositionY = 1;
            });
            for (int i = 0; i < 3; i++)
            {
                base.CreationBlock(t =>
                {
                    t.PositionX = x + 1;
                    t.PositionY = i;
                });
            }
        }
    }
}
